using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thaire.Investment.Domains.Master
{
   
    public class CreditAgency 
    {
        #region Properties
              // CREDIT_AGENCY_ID
        public virtual int CreditAgencyID { set; get; }
      // CREDIT_AGENCY_ISSUE_RATING
        public virtual String CreditAgencyIssueRating { set; get; }
      // CREDIT_AGENCY_ISSUE
        public virtual String CreditAgencyIssue { set; get; }
      // CREDIT_AGENCY_COUNTRY
        public virtual String CreditAgencyCountry { set; get; }

        public virtual int? CreditAgencyRiskLevel { set; get; }

        #endregion

        

        public override bool Equals(object obj)
        {
            if(obj == null)
                return false;
            if(obj.GetType() != typeof(CreditAgency) && !(obj is CreditAgency))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}",CreditAgencyID);
        }

    }


}